<style>
/*右小角弹窗*/
#msg-bottomloading{position: fixed;background-color: rgba(255,255,255,0.5);border-radius: 0.5rem;box-shadow: rgba(0, 0, 0, 0.16) 0px 0px 20px 0px;width:10rem;height:auto;right:0.3rem;bottom:7rem;z-index:100000}
#msg-bottomloading i{position: absolute;font-size: 15px;width:15px;height: 15px;right: 10px;top:10px}
#msg-bottomloading .msg_text{padding:0.3rem;color:#333}
</style>
<div class="fui-page fui-page-current" style="background: url({{tomedia(pagedata.setting.yebg) || '../addons/jy_ailiao/resource/images/yebg.jpg'}}) no-repeat 50%;background-size: cover;">
<div class="fui-content" style="background:none;">
	<div style="padding:0.5rem">
	<style>
	.pics{position:absolute;right:0.5rem;bottom:0.5rem;font-size:0.6rem;color:#fff;padding:0.1rem 0.5rem;background-color:rgba(0,0,0,0.5);border-radius:1rem;}
	.juli{position:absolute;left:0.5rem;bottom:0.5rem;font-size:0.6rem;color:#fff;padding:0.1rem 0.5rem;background-color:rgba(0,0,0,0.5);border-radius:1rem;}
	</style>
	<div ng-if="!pagedata.item.id" class='content-empty' style="margin-top:0">
		<i class='icon icon-wentifankui'></i>
		<div>暂时没有相关内容</div>
	</div>
	<div ng-if="pagedata.item.id">
		<div class="radius" style="background:#fff">
               <div class="image" style="position:relative;" href="javascript:;" ng-click="previewImage(pagedata.item.image,pagedata.item.images);">
                        <img style="border-radius:0.5rem;width:100%;max-height:16rem" ng-src="{{tomedia(pagedata.item.image) || '../core/resource/images/nopic.jpg'}}">
						<div class="pics">共{{pagedata.item.picsnum || 0}}张</div>
						<div class="juli"><i class="icon icon-map" style="font-size:0.5rem;"></i> 距你 {{pagedata.item.juli || 0}} km</div>
               </div>
			   <div class="fui-cellone" style="padding-bottom:0.2rem">
						 <div class="fui-cellone-info">
							<span class="bold" style="font-size:0.8rem;width:auto;margin-right:0.2rem">{{pagedata.item.nickname || '无'}}</span>
							<i ng-if="pagedata.item.sex==2" class="icon icon-nv red"></i>
							<i ng-if="pagedata.item.sex==1" class="icon icon-nan" style="color:#18bc9c"></i>
						 </div>
						 <div class="fui-cellone-remark noremark">
							<span class="bold" style="color:#18bc9c">·</span> 在线
						 </div>
			   </div>
			   <div class="fui-title gray" style="margin-top:0; padding-bottom:0.8rem;">
					<span>{{pagedata.item.city}}</span> · <span>{{pagedata.item.age}}岁</span> ·  <span>{{pagedata.item.zhiweititle ||'自由职业'}}</span> · <span>{{pagedata.item.height || '**cm'}}</span>
			   </div>
		</div>
		<div style="padding:0.5rem 0">
				<div class="radius" style="padding:1rem 0.5rem; color:#999;background-image: url('../addons/jy_ailiao/resource/images/descleft.png');background-size:100% auto; ">
					{{pagedata.item.desc || '暂无个人签名'}}
				</div>
		</div>
		<div class="image" href="javascript:;" ng-click="previewImage(pagedata.item.images[1],pagedata.item.images);" ng-if="pagedata.item.images[1]">
                <img style="border-radius:0.5rem;;width:100%;max-height:16rem" ng-src="{{tomedia(pagedata.item.images[1]) || '../core/resource/images/nopic.jpg'}}">
         </div>
		 <style>
		 .label-gray {
			background-color:#ddd;
			color:#333;
		}
		.label {
			font-size: 85%;
		}
		 </style>
        <div style="padding:0.5rem 0">
				<div class="fui-cellone radius" style="background:#fff;padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的动态
						</div>
						 <div class="fui-cellone-info"></div>
						 <div class="fui-cellone-remark" ng-click="access_json('/toquan//mid='+pagedata.item.mid)">
							查看所有{{pagedata.item.newsnum}}条
						 </div>
				</div>
				<div class="fui-card-images">
					<img ng-repeat="nv in pagedata.item.newslog" ng-click="pagedata.show_bigimage(img)" ng-src="{{tomedia(nv.image) || '../core/resource/images/nopic.jpg'}}" style="width:33.3%;height:4rem;padding:1px" />
				</div>
		</div>
		<div style="padding:0.5rem 0">
				<div class="radius" style="background:#fff;">
				<div class="fui-cellone" style="padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的详细资料
						</div>
				</div>
				<div style="padding:0.5rem;padding-top:0">
					<span ng-repeat="mv in pagedata.item.myinfo" class="label label-gray" style="margin-right:0.3rem;line-height:2">{{mv.title}}</span>
				</div>
				</div>
		</div>
		<div ng-if="pagedata.item.sipicsnum>0" style="padding:0.5rem 0;padding-bottom:0.5rem">
				<div class="fui-cellone radius" style="background:#fff;padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的私房照
						</div>
						 <div class="fui-cellone-info"></div>
						 <div ng-if="pagedata.item.isbuysiimg==1" class="fui-cellone-remark noremark">
							已上传{{pagedata.item.sipicsnum}}张
						 </div>
						 <div ng-if="pagedata.item.isbuysiimg!=1" class="fui-cellone-remark noremark">
							<span href="javascript:" ng-click="pagedata.showbuysiimg=true" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">付费查看</span>
						 </div>
				</div>
				<div ng-if="pagedata.item.isbuysiimg==1" class="image" ng-repeat="p in pagedata.item.siimgs track by $index" style="padding-top:0.3rem">
					 <img ng-click="previewImage(pagedata.item.siimgs[0],pagedata.item.siimgs);" style="border-radius:0.5rem;width:100%;max-height:16rem" ng-src="{{tomedia(p) || '../core/resource/images/nopic.jpg'}}">
				</div>
		</div>
		<div ng-if="pagedata.item.sivideonum>0" style="padding:0.5rem 0;padding-bottom:2rem">
				<div class="fui-cellone radius" style="background:#fff;padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的私密视频
						</div>
						 <div class="fui-cellone-info"></div>
						 <div ng-if="pagedata.item.isbuysiimg==1" class="fui-cellone-remark noremark">
							已上传{{pagedata.item.sivideonum}}个
						 </div>
						 <div ng-if="pagedata.item.isbuysiimg!=1" class="fui-cellone-remark noremark">
							<span href="javascript:" ng-click="pagedata.showbuysivideo=true" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">付费查看</span>
						 </div>
						 <div ng-if="pagedata.item.isbuysiimg==1" class="fui-cellone-remark noremark">
							<span href="javascript:" ng-click="access_json('jy_ailiao/simivideo//mid='+pagedata.item.mid)" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">前往查看</span>
						 </div>
				</div>
		</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/_buysivideo')"></div>
<div ng-include="sys_html('common/_buysiimg')"></div>
<div ng-include="sys_html('common/_sendping')"></div>
<div ng-include="sys_html('common/_videocall')"></div>
<style type="text/css" class="ng-binding ng-scope">
#chat-foot{background: #fff;width: 100%; padding:0.2rem 0.6rem;z-index:11}
#chat-foot span {line-height:1.3rem;font-size:1.4rem;}
.fui-icon-group.col-6 .fui-icon-col-sm {
    width: 16.66%;
}
</style>
<div id="chat-foot" style="height:auto;padding-bottom:0;position: fixed;bottom: 0;left: 0;right: 0;">
  <div class="fui-cell-group" style="padding:0;width:100%;margin-top:0">
    <div class="fui-icon-group noborder col-6" style="padding:0">
      <div class="fui-icon-col-sm external" style="margin:0; width:50%;" ng-if="pagedata.pluginset.pingtype==1" href="javascript:" ng-click="access_json('jy_ailiao/tcplog//tomid='+pagedata.item.mid)">
        <div class="c radius" style="margin:auto;"> <img class="icon" style="width:100%;" src="../addons/jy_ailiao/resource/images/dazhaohu.png"/> </div>
      </div>
      <div class="fui-icon-col-sm external" style="margin:0;" href="javascript:;" ng-click="pagedata.guanz(pagedata.item.mid);">
        <div class="c radius" style="width:2.5rem;height:1.0rem;line-height:1.0rem;margin:auto"> <i class="icon icon-follow" style="font-size:1.0rem;line-height: 1.0rem;color:#666666; display:block;"></i> <span style="; font-size:0.6rem; color:#666;">关注</span></div>
      </div>
      <div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="pagedata.showshiping=true;pagedata.toshiping()">
        <div class="c radius" style="width:2.5rem;height:1.0rem;line-height:1.0rem;margin:auto"> <i class="icon icon-video" style="font-size:1.0rem;line-height: 1.0rem;color:#666; display:block;"></i>  <span style="; font-size:0.6rem; color:#666;">通话</span></div>
      </div>
      <div class="fui-icon-col-sm external" style="margin:0" href="javascript:;"  ng-click="pagedata.sendliping=true;">
        <div class="c radius" style="width:2.5rem;height:1.0rem;line-height:1.0rem;margin:auto"> <i class="icon icon-liwu" style="font-size:1.0rem;line-height: 1.0rem;color:#666; display:block;"></i>  <span style="; font-size:0.6rem; color:#666;">礼物</span></div>
      </div>
    </div>
  </div>
</div>
<div ng-if="pagedata.sendliping" class="popup">
		<div class="popup-body">
			<div class="popup-bottom" style="background: #292929;">
				<i class="closed icon icon-cuowu" ng-click="pagedata.sendliping=false"></i>
				<div class='fui-cell-title text-center' style="background: #292929; color:#c196ff;">选择礼品</div>
				<div class="fui-icon-group noborder col-4" style="background: #292929;padding-left:15px;padding-right:15px;padding-bottom:15px">
					<a ng-repeat="lp in pagedata.liping"  class="fui-icon-col external" href="javascript:;" ng-click="pagedata.sendlp(lp.id);">
							<div class="fui-cell-icon"><img class="img-circle" ng-src="{{tomedia(lp.picurl)}}" style="width:38px;height:38px" /></div>
							<div class="text" style="color: #f4f4f4;">{{lp.title}}</div>
							<div class="gray c" style="color: #8c8c8c;font-size:0.5rem">金币:{{lp.price}}</div>
					</a>
				</div>
			</div>
		</div>
</div>
<div ng-if="pagedata.show_lookmsg" id="msg-bottomloading" href="javascript:;" ng-click="pagedata.show_lookmsg=false">
	<i class="fa fa-times"></i>
	<div class="msg_text">
		{{pagedata.liao_lookmsg ||'你好！欢迎浏览我的主页！'}}
	</div>
</div>
</div>
<script>
setTimeout(function(){
	if(scope.pagedata.liao_lookmsg){
		scope.pagedata.show_lookmsg=true;
		scope.$evalAsync();
	}
},3000);
scope.pagedata.guanz=function(mid){
	scope.post_json('/item/guanz/mid='+mid,{},function(res){
		if(scope.pagedata.item.islike==1){
			scope.pagedata.item.islike=0;
		}else{
			scope.pagedata.item.islike=1;
		}
		scope.$evalAsync();
		scope.message(res);
	});
}
scope.pagedata.pay_submit=function(post,post_url,complete_url){
	complete_url=complete_url?complete_url:'jy_ailiao/memberitem//mid='+scope.pagedata.item.mid
	scope.post_json(post_url,post,function(result){
		if(result.order_id){
			scope.pagedata.order_id=result.order_id;
			scope.$evalAsync();
			scope.tool.pay(result.pay_id,function(res){
					if(res.type=='success'){
						scope.message('支付成功！','success',complete_url);
					}else{
						scope.message('支付失败！','success',complete_url);
					}
			},'','',complete_url,complete_url);
		}else{
			scope.message(result);
		}
	});
}
scope.pagedata.toshiping=function(){
	//scope.message('您暂时没有视频聊天权限！');
	if(scope.pagedata.videocallurl){
		scope.pagedata.newpost=scope.pagedata.post
		scope.pagedata.newpost.type=9,
		scope.pagedata.newpost.msg='发起了视频聊天'
		scope.post_json('jy_ailiao/tcplog/addlog/',scope.pagedata.newpost,function(data){
			scope.access_json(scope.pagedata.videocallurl);
		});	
	}else{
		scope.message('您暂时没有视频聊天权限！');
	}
}
//提交礼物
scope.pagedata.sendlp=function(lpid){
	scope.post_json('jy_ailiao/tcplog/sendlp/',{'lpid':lpid},function(res){
		if(res.log){
			if(res.log.id){
				scope.pagedata.post.lastid=res.log.id;
			}
			scope.pagedata.listnew=scope.pagedata.listnew?scope.pagedata.listnew:[];
			scope.pagedata.listnew = scope.pagedata.listnew.concat(res.log)
			$('#svposttext').animate({scrollTop:100000},300);
			scope.pagedata.sendliping=false
			scope.pagedata.showmore=false
			scope.$evalAsync();
			scope.message('送礼成功！');
		}else{
			scope.message('送礼失败！');
		}
	});
}
</script>